package com.tpc.dao.core;

/**
 * @version 0.0.1
 * @author frederic.fortin
 * @modified 2010-09-10
 */
import com.google.gwt.user.client.rpc.IsSerializable;
import java.util.Date;

public class Phone implements IsSerializable {

    private int id;
    private String number;
    private String extension;
    private int areacodeId;
    private String areacode;
    private String internationalcode;
    private String description;
    private int defaut;
    private String[] keyType;
    private String TYPE;
    private int life;
    private Date created_date;
    private Date modified_date;
    private int created_by;
    private int modified_by;

    public Phone() {

    }

    public Phone(int idp,String descriptionp,String numberp,String extensionp,int defautp,int areacodeidp,String areacodep,String internationalcodep,int lifep,Date createddatep,Date modifieddatep,int createdbyp,int modifiedbyp) {
        setId(idp);
        setDescription(descriptionp);
        setNumber(numberp);
        setExtension(extensionp);
        setDefaut(defautp);
        setAreacodeId(areacodeidp);
        setAreacode(areacodep);
        setInternationalcode(internationalcodep);
        setLife(lifep);
        setCreatedDate(createddatep);
        setModifiedDate(modifieddatep);
        setCreatedBy(createdbyp);
        setModifiedBy(modifiedbyp);
    }

    public String getDescription() {
        return description;
    }
    public void setDescription(String param) {
        description = param;
    }

    public String getNumber() {
        return number;
    }
    public void setNumber(String param) {
        number = param;
    }

    public String getExtension() {
        return extension;
    }
    public void setExtension(String param) {
        extension = param;
    }

    public String getType() {
        return TYPE;
    }
    public void setType(String param) {
        TYPE = param;
    }

    public int getDefaut() {
        return defaut;
    }
    public void setDefaut(int param) {
        defaut = param;
    }

    public int getAreacodeId() {
        return areacodeId;
    }
    public void setAreacodeId(int param) {
        areacodeId = param;
    }

    public String getAreacode() {
        return areacode;
    }
    public void setAreacode(String param) {
        areacode = param;
    }

    public String getInternationalcode() {
        return internationalcode;
    }
    public void setInternationalcode(String param) {
        internationalcode = param;
    }

    public String[] getKeyType() {
        return keyType;
    }
    public void setKeyType(String[] param) {
        keyType = param;
    }

    /** ALL TPC_OBJECT HAVE THOSE METHODS / FIELDS **/
    public int getId() {
        return id;
    }
    public void setId(int param) {
        id = param;
    }

    public int getLife() {
        return life;
    }
    public void setLife(int param) {
        life = param;
    }

    public Date getCreatedDate() {
        return created_date;
    }
    public void setCreatedDate(Date param) {
        created_date = param;
    }

    public int getCreatedBy() {
        return created_by;
    }
    public void setCreatedBy(int param) {
        created_by = param;
    }

    public Date getModifiedDate() {
        return modified_date;
    }
    public void setModifiedDate(Date param) {
        modified_date = param;
    }

    public int getModifiedBy() {
        return modified_by;
    }
    public void setModifiedBy(int param) {
        modified_by = param;
    }
}
